writing polynomial functions given three zeros and a point